<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*,
				 com.kylin.common.*,
                 com.kylin.common.util.*,
                 com.kylin.module.user.orm.*,
				 com.kylin.module.shop.orm.*,
				 com.kylin.module.shop.forms.*,
				 com.kylin.common.dict.orm.Dict,
                 com.kylin.common.paginate.DisplayPage 
			     " %>
<%String sysLanguage = session.getAttribute(org.apache.struts.Globals.LOCALE_KEY).toString();%>
  <div style="margin:0;"><img src="/images/browse_<%=sysLanguage%>.jpg" alt="<bean:message key="index.leftcat" />" title="<bean:message key="index.leftcat" />"></div>
  <div class="in_box">
    <ul>
<%
	java.util.Locale headerLocale =(java.util.Locale)session.getAttribute(org.apache.struts.Globals.LOCALE_KEY);
    if(headerLocale == null){
        headerLocale = Locale.getDefault();
        session.setAttribute(org.apache.struts.Globals.LOCALE_KEY,headerLocale);
    }
  	List maincatproduct = MemObjFactory.getDict("产品类别",headerLocale.toString());
  	if (maincatproduct != null){
		for(int i=0;i<maincatproduct.size();i++){
		    Dict cat = (Dict)maincatproduct.get(i);
		    if(cat.getParent()==null || new Long("0").equals(cat.getParent().getId()) )
		        continue;
		    out.println("<li><img src='/images/ipic15.gif' width='24' height='6'><a href='/module/shop/shop.do?CMD=shopList&catid="+cat.getId()+"'>"+cat+"</a></li>");
		}
	}
%>    
    </ul> 
   </div>
   
